const mongoose = require("mongoose")
const { Schema, model } = mongoose
const MusicSchema = new Schema({
    name: {
        type: String,
        required: [true, "name 是必须的"],
    },
    artist: {
        type: String,
        required: [true, "artist 是必须的"],
    },
    m_id: {
        type: String,
        required: [true, "m_id 是必须的"]
    },
    pic_url: {
        type: String,
        required: [true, "pic_url 是必须的"]
    },
    lyric: {
        type: String,
        required: [true, "lyric 是必须的"]
    },
    source: {
        type: String,
        required: [true, "source 是必须的"]
    },

})

const Music = model("Music", MusicSchema)
module.exports = Music